package com.iflytek.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.iflytek.common.Result;
import com.iflytek.dto.OrderDTO;
import com.iflytek.dto.PageDTO;
import com.iflytek.info.Cartinfo;
import com.iflytek.model.Order;
import com.iflytek.vo.OrderVO;
import com.iflytek.vo.PageVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author h_t
 * @since 2023-09-23
 */
public interface OrderService extends IService<Order>   {


    Result<OrderVO> deleteById(Long id);

    Result<List<OrderVO>> findAll();

    Result<Boolean> saveOrder(OrderDTO dto,HttpServletRequest request);

    Result<Boolean> updateOrder(OrderDTO dto);

    Result<PageVO<OrderVO>> findPage(PageDTO<OrderDTO> dto);

    Result<OrderVO> findById(Long id);

    Result<PageVO<OrderVO>> findByFront(PageDTO<OrderDTO> dto,HttpServletRequest request);

    Result<Boolean> findByPay(Long id);

    Result<Cartinfo> findByPre(HttpServletRequest request);
}